﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion
using System.Runtime.Remoting.Lifetime;

namespace Thinxoft.HttpLib
{
    public class IPCObject : MarshalByRefObject
    {
        public IPCObject()
        {

        }

        public override Object InitializeLifetimeService()
        {
            ILease lease = (ILease)base.InitializeLifetimeService();
            if (lease.CurrentState == LeaseState.Initial)
            {
                lease.InitialLeaseTime = TimeSpan.FromMinutes(5);
                lease.SponsorshipTimeout = TimeSpan.FromMinutes(5);
                lease.RenewOnCallTime = TimeSpan.FromMinutes(5);
            }
            return lease;
        }


    }
}
